package com.ruoyi.qywx.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * @author : hcl
 * @Date : 2023/8/28 11:25
 */
@Getter
@Setter
public class ContactGreetVo {
    private Long id;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotEmpty(message = "未选择员工")
    private List<ContactVo> users;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private WelcomeVo welcome;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long creator;
    private String creatorName;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
}
